package ink.metoo.gude.module.security.service

import ink.metoo.gude.module.security.domain.ddl.User
import ink.metoo.gude.properties.JwtProperties
import io.jsonwebtoken.Claims

interface TokenService {

    fun createToken(user: User): String

    fun getClaims(token: String): Claims?

    fun isTokenExpired(claims: Claims, user: User): Boolean

    fun jwtProperties(): JwtProperties

}